/*
 * @Description: 交易类型-提现
 * @Author: yingying.fan
 * @Date: 2019-03-18 13:38:28
 * @Last Modified by: yingying.fan
 * @Last Modified time: 2019-03-18 15:21:22
 */
<script>
import BaseConsumeItem from './BaseConsumeItem'
import { RETURN_CASH_CARD_DESTROY, RETURN_CASH_APP_CHARGE } from '../../../consumedetail/constants/TradeDetailType.js'
export default {
  name: 'ConsumeReturnItem',
  extends: BaseConsumeItem,
  watch: {
    tradeDetailType(newValue, oldValue) {
      this.iconUrl = require('../../assets/return.png')
      switch (newValue) {
        case RETURN_CASH_CARD_DESTROY:
          this.tradeText = '销卡提现'
          break
        case RETURN_CASH_APP_CHARGE:
          this.tradeText = 'APP充值提现'
          break
      }
    }
  },
  methods: {
    // 交易失败
    parseWhenTradeFailure() {

    },
    // 交易退款
    parseWhenTradeRefund() {

    },
    // 交易成功
    parseWhenTradeSuccess() {
      this.payFeeDesc = '-' + this.payPrice
    },
    // 交易中
    parseWhenTrading() {

    }
  }
}
</script>
